//
//  UIView+FrameExt.h
//  YLCommon
//
//  Created by Apple on 2017/9/26.
//  Copyright © 2017年 Apple. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (FrameExt)
//只能生成get/Set方法声明
@property (nonatomic,assign) CGFloat yl_width;

@property (nonatomic,assign) CGFloat yl_heigth;

@property (nonatomic,assign) CGFloat yl_x;

@property (nonatomic,assign) CGFloat yl_y;


@property (nonatomic,assign) CGFloat yl_centerX;

@property (nonatomic,assign) CGFloat yl_centerY;

@property (nonatomic,assign) CGFloat yl_left;

@property (nonatomic,assign) CGFloat yl_top;

@property (nonatomic,assign) CGFloat yl_right;

@property (nonatomic,assign) CGFloat yl_bottom;

#pragma mark - API

/**
 判断View是否在屏幕上
 */
- (BOOL)isDisplayedInScreen;

/**
 移除所有子控件
 */
- (void)removeAllSubviews;
@end
